<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>全部文件</title>
	<script src="js/jQuery.js"></script>
	<SCRIPT src="component/layui/layui.js"></SCRIPT>
	<link rel="stylesheet" href="component/layui/css/layui.css" />
	<script src="js/sharedFilesManager.js"></script>
	<link rel="stylesheet" href="admin/css/pear-icon/demo.css">
	<link rel="stylesheet" href="admin/css/pear-icon/iconfont.css">
	<style>
		.list .list-item {
			height: 32px;
			line-height: 32px;
			color: gray;
			padding: 5px;
			padding-left: 15px;
			border-radius: 4px;
			margin-top: 5.2px;
		}
		.test
		{
			white-space:nowrap;/*不换行*/
			overflow:hidden;/**/
			text-overflow:ellipsis;/*超长显示为省略号*/
		}
	</style>
</head>
<body>
<div class="div-inline" style="padding: 20px;width: 70%;float: left">
		<form class="layui-form">
			<div class="layui-form-item" style="margin-bottom: 0px;">
				<div style="text-align: right">
					<div class="layui-inline">
						<blockquote id="recommendFiles" class="layui-elem-quote" style="width: 625px;text-align: left;line-height: 2px;margin-bottom: 0px;">
							<div class="layui-inline">
								猜你想找:
							</div>
						</blockquote>
					</div>
					<div id="gets1" class="layui-inline">
						<input class="layui-input " id="filename" type="text" placeholder="搜索你的共享组"  >
					</div>
					<div id="gets2" class="layui-inline">
						<div class="layui-inline">
							<a class="layui-btn layui-btn-sm" onclick="getFilesList()">
								<i class="layui-icon layui-icon-search"></i>查询</a>
						</div>
					</div>
					<div id="getf1" class="layui-inline">
						<input class="layui-input " id="filename1" type="text" placeholder="搜索你的文件"  >
					</div>
					<div id="getf2" class="layui-inline">
						<div class="layui-inline">
							<a class="layui-btn layui-btn-sm" onclick="getSharedFilesListM()">
								<i class="layui-icon layui-icon-search"></i>查询</a>
						</div>
					</div>
				</div>
			</div>
		</form>
		<table class="layui-table" lay-filter="allFilesDemo" lay-size="sm" id="allFilesTable" style="height: 100%; width: 100%">
		</table>
	<div id="allFilesTable_page"></div>
</div>
	<div class="my-card" style="padding-top:35px;width: 25%;height:530px;margin-left: 73%">
		<blockquote class="layui-elem-quote" style="height: 515px">
				<div class="layui-card" style="height: 490px">
				<div class="layui-card-header">今日热榜</div>
				<div class="layui-card-body">
				<ul class="list" id="top10">
				</ul>
				</div>
			</div>
		</blockquote>
	</div>

</body>
<script type="text/html" id="toolbar1">
	<div class="layui-btn-container" id="addFloder">
		<a class="layui-btn layui-btn-normal layui-btn-sm" onclick="addFloder()"><i class="layui-icon layui-icon-add-circle-fine"></i>新建共享组</a>
	</div>
</script>
<script type="text/html" id="toolbar">
	<div class="layui-btn-container">
		<a class="layui-btn layui-btn-sm" onclick="uplaod()"><i class="layui-icon"></i>上传文件</a>
		<a class="layui-btn layui-btn-normal layui-btn-sm" onclick="addSFloder()"><i class="layui-icon layui-icon-add-circle-fine"></i>新建文件夹</a>
		<a class="layui-btn layui-btn-primary layui-btn-sm" onclick="ObsDownload()"><i class="layui-icon layui-icon-download-circle"></i>下载文件</a>
		<a class="layui-btn layui-btn-primary layui-btn-sm" onclick="ObsCopy()">复制到</a>
		<a class="layui-btn layui-btn-primary layui-btn-sm" onclick="ObsMove()">移动到</a>
		<a class="layui-btn layui-btn-primary layui-btn-sm" id="back" onclick="back()">返回上一级</a>
	</div>
</script>
<script>
	function uplaod(){
		layui.use('layer', function(){
			var $ = layui.jquery,layer = layui.layer;
			layer.open({
				type: 2 //Page层类型
				,area: ['700px', '400px']
				,title: '文件选择'
				,shade: 0.6 //遮罩透明度
				,maxmin: true //允许全屏最小化
				,content: 'uplaodShared.html',
				cancel: function (index, layero) {
					getSharedFileList();
				},
				end: function () {//无论是确认还是取消，只要层被销毁了，end都会执行，不携带任何参数。layer.open关闭事件
					getSharedFileList();
				}
			});
		});
	}
</script>
</html>